package mfund.com.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mfund.com.model.*;

import mfund.com.dao.*;

import mfund.com.service.*;


@Service
public class LoginServiceImpl implements LoginService {


    @Resource
    private TUserMapper tuserMapper;

    @Override
    public List<TUser> query(String userName,String password) {
    	TUserExample pexam=new TUserExample();
    	TUserExample.Criteria criteria=pexam.createCriteria();
    	criteria.andUserNameEqualTo(userName);
    	criteria.andPasswordEqualTo(password);
        List<TUser> result = tuserMapper.selectByExample(pexam);

        return result;
    }
}
